package com.zhny.valve.rtu.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class ValveRTUStoreEntry extends StoreEntity {

    @PropertyValue(alias = "电动阀门状态",description = "设备状态",unit = "",icon= IconConstract.Other,variableType= VariableType.OpenClose,actions={
            @ActionValue(name= Operate.Open,commandCode="valveOpen",eventType= EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="valveClose",eventType=EventType.Click),
            @ActionValue(name=Operate.Query,commandCode="valveQuery",eventType=EventType.Click)
    })
    private String valveStatus;
    @Override
    public String toString(){
        StringBuffer sb = new StringBuffer();
        sb.append("valveStatus=").append(this.valveStatus);
        return sb.toString();
    }
}
